import socket
# udp用SOCK_DGRAM数据报
client = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)

client.sendto(b'hello',('127.0.0.1',8080))
client.sendto(b'world',('127.0.0.1',8080))
client.sendto(b'world',('127.0.0.1',8080))
client.sendto(b'world',('127.0.0.1',8080))
client.sendto(b'world',('127.0.0.1',8080))
client.sendto(b'world',('127.0.0.1',8080))